#include <iostream>
#include "XJUseTime.h"
#include <unistd.h>
void PrintUseTime(const std::string & name, int64_t useTime){
    std::cout << name << " use time : " << useTime << std::endl;
}

void TestUseTime(){
    XJUtilClass::XJUseTime ut("test", 1, PrintUseTime);
    sleep(1);
    std::cout << ut.GetUseTimeMS() << std::endl;
    sleep(1);
}

int main(int argc, char *argv[]){
    TestUseTime();
	return 0;
}